import request from "../utils/request";
import {UserList,UserListParams,UserDelete,UserForm} from "@/interface/user"
// 用户列表
export function userList(data:UserListParams):any  {
  return request({
    type:'get',
    url:"/user/list",
    data,
  })
}
// 删除
export function deleteUser(data:UserDelete):any{
  return request({
    type:'post',
    url:"/user/delete",
    data,
  })
}
// 提交用户表单
export function userCreate(data:UserForm):any {
  return request({
    type:'post',
    url:"/user/create",
    data,
  })
}
// 编辑用户表单
export function userEdit(data:UserForm):any {
  return request({
    type:'post',
    url:"/user/edit",
    data,
  })
}
